package com.big.identify.controller;

import com.big.common.result.Result;
import com.big.identify.service.IdentifyService;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/tx/Identify")
public class IdentifyController {

    @Autowired
    IdentifyService identifyService;

    @ApiModelProperty("腾讯云识别身份证")
    @GetMapping("/IdentifyUrl")
    public Result IdentifyUrl(@RequestParam("url") String url ) throws TencentCloudSDKException {
        String s = identifyService.IdentifyUrl(url);
        return Result.ok(s);
    }

}
